/*
 * @Author: Drc
 * @Date: 2021-10-14 15:06:49
 * @LastEditTime: 2021-10-18 17:13:21
 * @LastEditors: Drc
 */
import React from 'react'
import {} from 'react-native'
import {Shadow, ShadowProps} from 'react-native-shadow-2'
export interface ShadowWrapProps extends ShadowProps {
  children: any
}
/**
 * 阴影
 */
const ShadowWrap = (props: ShadowWrapProps) => {
  const {children, viewStyle, ...other} = props

  return (
    <Shadow startColor={'rgba(0,0,0,0.03)'} distance={12} {...other} viewStyle={{width: '100%', ...viewStyle}}>
      {children}
    </Shadow>
  )
}
export default ShadowWrap
